﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using VoteSystem.BLL;
using VoteSystem.Model.Models;

namespace VoteSystem.UI.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/
        private T_CompetitorServices cs = new T_CompetitorServices();
        public ActionResult Index()
        {
            //增加demo
            //cs.Add(new T_Competitor
            //{
            //    Name = "张三",
            //    ImgUrl = "...",
            //    Tel = "1234",
            //    DescContents = "asdasda",
            //    CreateTime = DateTime.Now
            //});
            //查询demo
            List<T_Competitor> T_Competitors = cs.GetT_CompetitorList(1);
            return View();
        }
        public JsonResult getID()
        {
            return Json(1);        
        }

    }
}
